package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.IReserveInfoBiz;
import com.yc.rh.dao.IReserveInfoDao;
import com.yc.rh.entities.ReserveInfo;

public class ReserveInfoBizImpl implements IReserveInfoBiz{
	private IReserveInfoDao reserveInfoDao;
	
	public void setReserveInfoDao(IReserveInfoDao reserveInfoDao) {
		this.reserveInfoDao = reserveInfoDao;
	}

	@Override
	public int addReserve(ReserveInfo rei) {
		return reserveInfoDao.addReserve(rei);
	}

	@Override
	public int delReserve(String reid) {
		return reserveInfoDao.delReserve(reid);
	}

	@Override
	public List<ReserveInfo> getInfo() {
		return reserveInfoDao.getInfo();
	}

	@Override
	public int findReserveInfoByDate(String startDate, String endDate, Integer pageNo, Integer pageSize) {
		return reserveInfoDao.findReserveInfoByDate(startDate, endDate, pageNo, pageSize);
	}

	@Override
	public int getTotal() {
		return reserveInfoDao.getTotal();
	}

	@Override
	public int getAiid(String ainame) {
		return reserveInfoDao.getAiid(ainame);
	}

	@Override
	public List<ReserveInfo> getDate() {
		return reserveInfoDao.getDate();
	}

	@Override
	public int updateBeiZhu(ReserveInfo reserveInfo) {
		return reserveInfoDao.updateBeiZhu(reserveInfo);
	}
}
